package Model;

import Model.ObjectViews.ItemCosechaView;

public class ItemCosecha 
{
	//Atributos
	private Lote lote;
	private float cantCosechada;
	
	//Getters
	public Lote getLote() 
	{
		return lote;
	}
	public float getCantCosechada() 
	{
		return cantCosechada;
	}
	
	//Setters
	public void setLote(Lote lote) 
	{
		this.lote = lote;
	}
	public void setCantCosechada(float cantCosechada) 
	{
		this.cantCosechada = cantCosechada;
	}
	
	//Constructor
	public ItemCosecha(Lote lote, float cantCosechada)
	{
		this.lote = lote;
		this.cantCosechada = cantCosechada;
	}
	
	//View getter
	public ItemCosechaView getView()
	{
		ItemCosechaView view = new ItemCosechaView();
		view.setCantCosechada(this.getCantCosechada());
		view.setLote(this.getLote().getView());
		
		return view;
	}
}
